<include file="Public:header" />
<div class="headbar">
    <div class="position"><span>促销</span><span>></span><span>优惠券</span><span>></span><span>优惠券管理</span></div>
    <div class="operating">
        <a href="{:U('Game/coupon_edit')}"><button class="operating_btn" type="button" ><span class="addition">新建优惠券</span></button></a>
    </div>
</div>

<div class="content">
    <table id="list_table" class="list_table">
        <colgroup>
            <col width="100px" />
            <col width="150px" />
            <col width="150px" />
            <col width="200px" />
            <col width="100px" />
            <col width="100px" />
            <col width="100px" />
            <col width="150px" />
        </colgroup>

        <thead>
            <tr>
                <th>排序</th>
                <th>名称</th>
                <th>面值</th>
                <th>有效期</th>
                <th>剩余</th>
                <th>已领取</th>
                <th>已使用</th>
                <th>操作</th>
            </tr>
        </thead>

        <tbody>
            <foreach name='coupon' item='item' key='key'>
            <tr>
                <td><input name="id[]" type="checkbox" value="{$item['id']}" /></td>
                <td>{$item['title']}</td>
                <td>{$item['value']}</td>
                <td>{$item['start_time']}~{$item['end_time']}</td>
                <td></td>
                <td></td>
                <td></td>
                <td>
                    <a href="{:U('Game/coupon_edit', array('id' => $item[id]))}"><img class="operator" src="__PUBLIC__/Partner/images/admin/icon_edit.gif" alt="编辑" /></a>
                    <a href="javascript:void(0)" onclick="delModel({link:'{:U('Game/game_del', array('id' => $item[id]))}'})"><img class="operator" src="__PUBLIC__/Partner/images/admin/icon_del.gif" alt="作废" /></a>
                </td>
            </tr>
            </foreach>
        </tbody>
    </table>
    {$page}
</div>
<include file="Public:footer" />